// map.js
Page({
  data: {
    height: 0,
    latitude: 36.06623,
    longitude: 120.38299,
    markers: [{
      iconPath: '../../images/icon/location.png',
      id: 0,
      latitude: 0,
      longitude: 0,
      width: 50,
      height: 50
    }]
  },
  onLoad(options) {
    var that = this;
    this.data.markers.latitude = parseFloat(options.lat),
    this.data.markers.longitude = parseFloat(options.long),
    that.setData({
      latitude: this.data.markers.latitude,
      longitude: this.data.markers.longitude
    })
    this.getHeight();
  },
  regionchange(e) {
    //console.log(e.type)
  },
  markertap(e) {
    //console.log(e.markerId)
  },
  controltap(e) {
    //console.log(e.controlId)
  },
  getHeight: function() {
    var that = this;
    var height = wx.getSystemInfoSync().windowHeight;
    that.setData({
      height: height
    })
  }
})